package com.hainatong.jcmvvmbase.mainhome.fragment.warehouse;

import android.os.Bundle;
import com.hainatong.jcmvvmbase.MvvmLazyFragment;
import com.hainatong.jcmvvmbase.R;
import com.hainatong.jcmvvmbase.databinding.FragmentRukuAddListBinding;
import com.hainatong.mvvmbase.base.NoViewModel;

public class RukuAddFragment extends MvvmLazyFragment<FragmentRukuAddListBinding, NoViewModel>
{
    private static String RUKU_ADD_TAG = "RukuAddFragment";

    private String goodsCode;

    public static RukuAddFragment newInstance(String scanCode)
    {
        Bundle bundle = new Bundle();
        bundle.putString( RUKU_ADD_TAG , scanCode );
        RukuAddFragment addFragment = new RukuAddFragment();
        addFragment.setArguments( bundle );
        return addFragment;
    }

    @Override
    public int getLayoutId()
    {
        return R.layout.fragment_ruku_add_list;
    }

    @Override
    public int getBindingVariable()
    {
        return 0;
    }

    @Override
    protected void initParameters()
    {
        Bundle args = getArguments();
        if(  args != null )
        {
            goodsCode = args.getString(RUKU_ADD_TAG , "");
        }
    }

    @Override
    protected void onRetryBtnClick()
    {
    }


}
